<?php
class My_View_Helper_Menu extends Zend_View_Helper_Abstract {
    public function Menu(){
        $module = Zend_Controller_Front::getInstance()->getRequest()->getModuleName();        
        $controller = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();                
        $view = Zend_Controller_Front::getInstance()->getRequest()->getActionName();                
        
        $html = '';
        
        $p = (strtolower($module) == 'default')?1:0;
        $p += (strtolower($controller) == 'index')?1:0;
        $p += (strtolower($view) == 'index')?1:0;
        
        if($p != 3){
            $html = '<div id="layout-menu"></div>';
        }
        return $html;
    }
}
?>
